package com.yunqiao.service.api.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunqiao.service.api.entity.RedPacketEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunqiao.service.api.vo.RedPacketVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 红包表
 *
 * @author Crocutax
 * @email wangxw725@163.com
 * @date 2019-03-02 15:03:56
 */
@Mapper
public interface RedPacketMapper extends BaseMapper<RedPacketEntity> {

    RedPacketVo details(@Param("id") Integer id);

    IPage<RedPacketVo> pageList(Page<RedPacketEntity> page, @Param("ew") QueryWrapper<RedPacketEntity> queryWrapper);
}
